package roadsuggester.tracks;

import android.graphics.Canvas;
import android.graphics.Color;

import com.google.android.maps.MapView;
import com.google.android.maps.Projection;


public class NavigationTrackOverlay extends com.google.android.maps.Overlay
{
	private RecordedTrack track;

	public NavigationTrackOverlay(RecordedTrack track)
	{
		this.track=track;
	}

	@Override
	public boolean draw(Canvas canvas, MapView mapView, boolean shadow, long when)
	{
		super.draw(canvas, mapView, shadow);
		final Projection projection=mapView.getProjection();
		track.drawTrack(canvas, projection, Color.RED);
		return true;
	}


}
